
using Yoozoo.Managers;

namespace Gameplay.PVE.TurnBase
{
    public class TriggerElement : ElementBase
    {
        private int triggerType;
        public override void Parse(TbsSkillElementConfig config)
        {
            base.Parse(config);
            triggerType = GetValue("TriggerType");
            if (config.flyText != null)
            {
                //PveFlyTextManager.Instance.ShowFlyText(config.flyText,target.Data.position,1,0.8f,ETextColor.Red);
            }
        }

        public int GetTriggerElement(int type)
        {
            if (triggerType == type)
            {
                return GetValue("TriggerElement");;
            }
            return 0;
        }
    }
}